package qldc.pm.qlktcsdldc.model.impl;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.impl.BaseModelImpl;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.util.PortalUtil;

import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;

import qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh;
import qldc.pm.qlktcsdldc.model.DanhMucSoBanNganhModel;

import java.io.Serializable;

import java.sql.Types;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * The base model implementation for the DanhMucSoBanNganh service. Represents a row in the &quot;QLKT_DanhMucSoBanNganh&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This implementation and its corresponding interface {@link qldc.pm.qlktcsdldc.model.DanhMucSoBanNganhModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link DanhMucSoBanNganhImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see DanhMucSoBanNganhImpl
 * @see qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh
 * @see qldc.pm.qlktcsdldc.model.DanhMucSoBanNganhModel
 * @generated
 */
public class DanhMucSoBanNganhModelImpl extends BaseModelImpl<DanhMucSoBanNganh>
    implements DanhMucSoBanNganhModel {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a danh muc so ban nganh model instance should use the {@link qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh} interface instead.
     */
    public static final String TABLE_NAME = "QLKT_DanhMucSoBanNganh";
    public static final Object[][] TABLE_COLUMNS = {
            { "IDQLKT_DanhMucSoBanNganh", Types.BIGINT },
            { "groupId", Types.BIGINT },
            { "companyId", Types.BIGINT },
            { "userId", Types.BIGINT },
            { "userName", Types.VARCHAR },
            { "createDate", Types.TIMESTAMP },
            { "modifiedDate", Types.TIMESTAMP },
            { "TenSoBanNganh", Types.VARCHAR },
            { "DiaChi", Types.VARCHAR },
            { "SoDienThoai", Types.VARCHAR },
            { "Fax", Types.VARCHAR },
            { "Email", Types.VARCHAR },
            { "NguoiLienHe", Types.VARCHAR },
            { "Website", Types.VARCHAR },
            { "ChuThich", Types.VARCHAR },
            { "deleted", Types.BOOLEAN }
        };
    public static final String TABLE_SQL_CREATE = "create table QLKT_DanhMucSoBanNganh (IDQLKT_DanhMucSoBanNganh LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,TenSoBanNganh VARCHAR(75) null,DiaChi VARCHAR(75) null,SoDienThoai VARCHAR(75) null,Fax VARCHAR(75) null,Email VARCHAR(75) null,NguoiLienHe VARCHAR(75) null,Website VARCHAR(75) null,ChuThich VARCHAR(75) null,deleted BOOLEAN)";
    public static final String TABLE_SQL_DROP = "drop table QLKT_DanhMucSoBanNganh";
    public static final String ORDER_BY_JPQL = " ORDER BY danhMucSoBanNganh.IDQLKT_DanhMucSoBanNganh ASC";
    public static final String ORDER_BY_SQL = " ORDER BY QLKT_DanhMucSoBanNganh.IDQLKT_DanhMucSoBanNganh ASC";
    public static final String DATA_SOURCE = "liferayDataSource";
    public static final String SESSION_FACTORY = "liferaySessionFactory";
    public static final String TX_MANAGER = "liferayTransactionManager";
    public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.entity.cache.enabled.qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh"),
            true);
    public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.finder.cache.enabled.qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh"),
            true);
    public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.util.service.ServiceProps.get(
                "value.object.column.bitmask.enabled.qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh"),
            true);
    public static long IDQLKT_DANHMUCSOBANNGANH_COLUMN_BITMASK = 1L;
    public static long TENSOBANNGANH_COLUMN_BITMASK = 2L;
    public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.util.service.ServiceProps.get(
                "lock.expiration.time.qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh"));
    private static ClassLoader _classLoader = DanhMucSoBanNganh.class.getClassLoader();
    private static Class<?>[] _escapedModelInterfaces = new Class[] {
            DanhMucSoBanNganh.class
        };
    private long _IDQLKT_DanhMucSoBanNganh;
    private long _originalIDQLKT_DanhMucSoBanNganh;
    private boolean _setOriginalIDQLKT_DanhMucSoBanNganh;
    private long _groupId;
    private long _companyId;
    private long _userId;
    private String _userUuid;
    private String _userName;
    private Date _createDate;
    private Date _modifiedDate;
    private String _TenSoBanNganh;
    private String _originalTenSoBanNganh;
    private String _DiaChi;
    private String _SoDienThoai;
    private String _Fax;
    private String _Email;
    private String _NguoiLienHe;
    private String _Website;
    private String _ChuThich;
    private Boolean _deleted;
    private long _columnBitmask;
    private DanhMucSoBanNganh _escapedModel;

    public DanhMucSoBanNganhModelImpl() {
    }

    @Override
    public long getPrimaryKey() {
        return _IDQLKT_DanhMucSoBanNganh;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setIDQLKT_DanhMucSoBanNganh(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _IDQLKT_DanhMucSoBanNganh;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Class<?> getModelClass() {
        return DanhMucSoBanNganh.class;
    }

    @Override
    public String getModelClassName() {
        return DanhMucSoBanNganh.class.getName();
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("IDQLKT_DanhMucSoBanNganh", getIDQLKT_DanhMucSoBanNganh());
        attributes.put("groupId", getGroupId());
        attributes.put("companyId", getCompanyId());
        attributes.put("userId", getUserId());
        attributes.put("userName", getUserName());
        attributes.put("createDate", getCreateDate());
        attributes.put("modifiedDate", getModifiedDate());
        attributes.put("TenSoBanNganh", getTenSoBanNganh());
        attributes.put("DiaChi", getDiaChi());
        attributes.put("SoDienThoai", getSoDienThoai());
        attributes.put("Fax", getFax());
        attributes.put("Email", getEmail());
        attributes.put("NguoiLienHe", getNguoiLienHe());
        attributes.put("Website", getWebsite());
        attributes.put("ChuThich", getChuThich());
        attributes.put("deleted", getDeleted());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long IDQLKT_DanhMucSoBanNganh = (Long) attributes.get(
                "IDQLKT_DanhMucSoBanNganh");

        if (IDQLKT_DanhMucSoBanNganh != null) {
            setIDQLKT_DanhMucSoBanNganh(IDQLKT_DanhMucSoBanNganh);
        }

        Long groupId = (Long) attributes.get("groupId");

        if (groupId != null) {
            setGroupId(groupId);
        }

        Long companyId = (Long) attributes.get("companyId");

        if (companyId != null) {
            setCompanyId(companyId);
        }

        Long userId = (Long) attributes.get("userId");

        if (userId != null) {
            setUserId(userId);
        }

        String userName = (String) attributes.get("userName");

        if (userName != null) {
            setUserName(userName);
        }

        Date createDate = (Date) attributes.get("createDate");

        if (createDate != null) {
            setCreateDate(createDate);
        }

        Date modifiedDate = (Date) attributes.get("modifiedDate");

        if (modifiedDate != null) {
            setModifiedDate(modifiedDate);
        }

        String TenSoBanNganh = (String) attributes.get("TenSoBanNganh");

        if (TenSoBanNganh != null) {
            setTenSoBanNganh(TenSoBanNganh);
        }

        String DiaChi = (String) attributes.get("DiaChi");

        if (DiaChi != null) {
            setDiaChi(DiaChi);
        }

        String SoDienThoai = (String) attributes.get("SoDienThoai");

        if (SoDienThoai != null) {
            setSoDienThoai(SoDienThoai);
        }

        String Fax = (String) attributes.get("Fax");

        if (Fax != null) {
            setFax(Fax);
        }

        String Email = (String) attributes.get("Email");

        if (Email != null) {
            setEmail(Email);
        }

        String NguoiLienHe = (String) attributes.get("NguoiLienHe");

        if (NguoiLienHe != null) {
            setNguoiLienHe(NguoiLienHe);
        }

        String Website = (String) attributes.get("Website");

        if (Website != null) {
            setWebsite(Website);
        }

        String ChuThich = (String) attributes.get("ChuThich");

        if (ChuThich != null) {
            setChuThich(ChuThich);
        }

        Boolean deleted = (Boolean) attributes.get("deleted");

        if (deleted != null) {
            setDeleted(deleted);
        }
    }

    @Override
    public long getIDQLKT_DanhMucSoBanNganh() {
        return _IDQLKT_DanhMucSoBanNganh;
    }

    @Override
    public void setIDQLKT_DanhMucSoBanNganh(long IDQLKT_DanhMucSoBanNganh) {
        _columnBitmask = -1L;

        if (!_setOriginalIDQLKT_DanhMucSoBanNganh) {
            _setOriginalIDQLKT_DanhMucSoBanNganh = true;

            _originalIDQLKT_DanhMucSoBanNganh = _IDQLKT_DanhMucSoBanNganh;
        }

        _IDQLKT_DanhMucSoBanNganh = IDQLKT_DanhMucSoBanNganh;
    }

    public long getOriginalIDQLKT_DanhMucSoBanNganh() {
        return _originalIDQLKT_DanhMucSoBanNganh;
    }

    @Override
    public long getGroupId() {
        return _groupId;
    }

    @Override
    public void setGroupId(long groupId) {
        _groupId = groupId;
    }

    @Override
    public long getCompanyId() {
        return _companyId;
    }

    @Override
    public void setCompanyId(long companyId) {
        _companyId = companyId;
    }

    @Override
    public long getUserId() {
        return _userId;
    }

    @Override
    public void setUserId(long userId) {
        _userId = userId;
    }

    @Override
    public String getUserUuid() throws SystemException {
        return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
    }

    @Override
    public void setUserUuid(String userUuid) {
        _userUuid = userUuid;
    }

    @Override
    public String getUserName() {
        if (_userName == null) {
            return StringPool.BLANK;
        } else {
            return _userName;
        }
    }

    @Override
    public void setUserName(String userName) {
        _userName = userName;
    }

    @Override
    public Date getCreateDate() {
        return _createDate;
    }

    @Override
    public void setCreateDate(Date createDate) {
        _createDate = createDate;
    }

    @Override
    public Date getModifiedDate() {
        return _modifiedDate;
    }

    @Override
    public void setModifiedDate(Date modifiedDate) {
        _modifiedDate = modifiedDate;
    }

    @Override
    public String getTenSoBanNganh() {
        if (_TenSoBanNganh == null) {
            return StringPool.BLANK;
        } else {
            return _TenSoBanNganh;
        }
    }

    @Override
    public void setTenSoBanNganh(String TenSoBanNganh) {
        _columnBitmask |= TENSOBANNGANH_COLUMN_BITMASK;

        if (_originalTenSoBanNganh == null) {
            _originalTenSoBanNganh = _TenSoBanNganh;
        }

        _TenSoBanNganh = TenSoBanNganh;
    }

    public String getOriginalTenSoBanNganh() {
        return GetterUtil.getString(_originalTenSoBanNganh);
    }

    @Override
    public String getDiaChi() {
        if (_DiaChi == null) {
            return StringPool.BLANK;
        } else {
            return _DiaChi;
        }
    }

    @Override
    public void setDiaChi(String DiaChi) {
        _DiaChi = DiaChi;
    }

    @Override
    public String getSoDienThoai() {
        if (_SoDienThoai == null) {
            return StringPool.BLANK;
        } else {
            return _SoDienThoai;
        }
    }

    @Override
    public void setSoDienThoai(String SoDienThoai) {
        _SoDienThoai = SoDienThoai;
    }

    @Override
    public String getFax() {
        if (_Fax == null) {
            return StringPool.BLANK;
        } else {
            return _Fax;
        }
    }

    @Override
    public void setFax(String Fax) {
        _Fax = Fax;
    }

    @Override
    public String getEmail() {
        if (_Email == null) {
            return StringPool.BLANK;
        } else {
            return _Email;
        }
    }

    @Override
    public void setEmail(String Email) {
        _Email = Email;
    }

    @Override
    public String getNguoiLienHe() {
        if (_NguoiLienHe == null) {
            return StringPool.BLANK;
        } else {
            return _NguoiLienHe;
        }
    }

    @Override
    public void setNguoiLienHe(String NguoiLienHe) {
        _NguoiLienHe = NguoiLienHe;
    }

    @Override
    public String getWebsite() {
        if (_Website == null) {
            return StringPool.BLANK;
        } else {
            return _Website;
        }
    }

    @Override
    public void setWebsite(String Website) {
        _Website = Website;
    }

    @Override
    public String getChuThich() {
        if (_ChuThich == null) {
            return StringPool.BLANK;
        } else {
            return _ChuThich;
        }
    }

    @Override
    public void setChuThich(String ChuThich) {
        _ChuThich = ChuThich;
    }

    @Override
    public Boolean getDeleted() {
        return _deleted;
    }

    @Override
    public void setDeleted(Boolean deleted) {
        _deleted = deleted;
    }

    public long getColumnBitmask() {
        return _columnBitmask;
    }

    @Override
    public ExpandoBridge getExpandoBridge() {
        return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
            DanhMucSoBanNganh.class.getName(), getPrimaryKey());
    }

    @Override
    public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
        ExpandoBridge expandoBridge = getExpandoBridge();

        expandoBridge.setAttributes(serviceContext);
    }

    @Override
    public DanhMucSoBanNganh toEscapedModel() {
        if (_escapedModel == null) {
            _escapedModel = (DanhMucSoBanNganh) ProxyUtil.newProxyInstance(_classLoader,
                    _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
        }

        return _escapedModel;
    }

    @Override
    public Object clone() {
        DanhMucSoBanNganhImpl danhMucSoBanNganhImpl = new DanhMucSoBanNganhImpl();

        danhMucSoBanNganhImpl.setIDQLKT_DanhMucSoBanNganh(getIDQLKT_DanhMucSoBanNganh());
        danhMucSoBanNganhImpl.setGroupId(getGroupId());
        danhMucSoBanNganhImpl.setCompanyId(getCompanyId());
        danhMucSoBanNganhImpl.setUserId(getUserId());
        danhMucSoBanNganhImpl.setUserName(getUserName());
        danhMucSoBanNganhImpl.setCreateDate(getCreateDate());
        danhMucSoBanNganhImpl.setModifiedDate(getModifiedDate());
        danhMucSoBanNganhImpl.setTenSoBanNganh(getTenSoBanNganh());
        danhMucSoBanNganhImpl.setDiaChi(getDiaChi());
        danhMucSoBanNganhImpl.setSoDienThoai(getSoDienThoai());
        danhMucSoBanNganhImpl.setFax(getFax());
        danhMucSoBanNganhImpl.setEmail(getEmail());
        danhMucSoBanNganhImpl.setNguoiLienHe(getNguoiLienHe());
        danhMucSoBanNganhImpl.setWebsite(getWebsite());
        danhMucSoBanNganhImpl.setChuThich(getChuThich());
        danhMucSoBanNganhImpl.setDeleted(getDeleted());

        danhMucSoBanNganhImpl.resetOriginalValues();

        return danhMucSoBanNganhImpl;
    }

    @Override
    public int compareTo(DanhMucSoBanNganh danhMucSoBanNganh) {
        int value = 0;

        if (getIDQLKT_DanhMucSoBanNganh() < danhMucSoBanNganh.getIDQLKT_DanhMucSoBanNganh()) {
            value = -1;
        } else if (getIDQLKT_DanhMucSoBanNganh() > danhMucSoBanNganh.getIDQLKT_DanhMucSoBanNganh()) {
            value = 1;
        } else {
            value = 0;
        }

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof DanhMucSoBanNganh)) {
            return false;
        }

        DanhMucSoBanNganh danhMucSoBanNganh = (DanhMucSoBanNganh) obj;

        long primaryKey = danhMucSoBanNganh.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public void resetOriginalValues() {
        DanhMucSoBanNganhModelImpl danhMucSoBanNganhModelImpl = this;

        danhMucSoBanNganhModelImpl._originalIDQLKT_DanhMucSoBanNganh = danhMucSoBanNganhModelImpl._IDQLKT_DanhMucSoBanNganh;

        danhMucSoBanNganhModelImpl._setOriginalIDQLKT_DanhMucSoBanNganh = false;

        danhMucSoBanNganhModelImpl._originalTenSoBanNganh = danhMucSoBanNganhModelImpl._TenSoBanNganh;

        danhMucSoBanNganhModelImpl._columnBitmask = 0;
    }

    @Override
    public CacheModel<DanhMucSoBanNganh> toCacheModel() {
        DanhMucSoBanNganhCacheModel danhMucSoBanNganhCacheModel = new DanhMucSoBanNganhCacheModel();

        danhMucSoBanNganhCacheModel.IDQLKT_DanhMucSoBanNganh = getIDQLKT_DanhMucSoBanNganh();

        danhMucSoBanNganhCacheModel.groupId = getGroupId();

        danhMucSoBanNganhCacheModel.companyId = getCompanyId();

        danhMucSoBanNganhCacheModel.userId = getUserId();

        danhMucSoBanNganhCacheModel.userName = getUserName();

        String userName = danhMucSoBanNganhCacheModel.userName;

        if ((userName != null) && (userName.length() == 0)) {
            danhMucSoBanNganhCacheModel.userName = null;
        }

        Date createDate = getCreateDate();

        if (createDate != null) {
            danhMucSoBanNganhCacheModel.createDate = createDate.getTime();
        } else {
            danhMucSoBanNganhCacheModel.createDate = Long.MIN_VALUE;
        }

        Date modifiedDate = getModifiedDate();

        if (modifiedDate != null) {
            danhMucSoBanNganhCacheModel.modifiedDate = modifiedDate.getTime();
        } else {
            danhMucSoBanNganhCacheModel.modifiedDate = Long.MIN_VALUE;
        }

        danhMucSoBanNganhCacheModel.TenSoBanNganh = getTenSoBanNganh();

        String TenSoBanNganh = danhMucSoBanNganhCacheModel.TenSoBanNganh;

        if ((TenSoBanNganh != null) && (TenSoBanNganh.length() == 0)) {
            danhMucSoBanNganhCacheModel.TenSoBanNganh = null;
        }

        danhMucSoBanNganhCacheModel.DiaChi = getDiaChi();

        String DiaChi = danhMucSoBanNganhCacheModel.DiaChi;

        if ((DiaChi != null) && (DiaChi.length() == 0)) {
            danhMucSoBanNganhCacheModel.DiaChi = null;
        }

        danhMucSoBanNganhCacheModel.SoDienThoai = getSoDienThoai();

        String SoDienThoai = danhMucSoBanNganhCacheModel.SoDienThoai;

        if ((SoDienThoai != null) && (SoDienThoai.length() == 0)) {
            danhMucSoBanNganhCacheModel.SoDienThoai = null;
        }

        danhMucSoBanNganhCacheModel.Fax = getFax();

        String Fax = danhMucSoBanNganhCacheModel.Fax;

        if ((Fax != null) && (Fax.length() == 0)) {
            danhMucSoBanNganhCacheModel.Fax = null;
        }

        danhMucSoBanNganhCacheModel.Email = getEmail();

        String Email = danhMucSoBanNganhCacheModel.Email;

        if ((Email != null) && (Email.length() == 0)) {
            danhMucSoBanNganhCacheModel.Email = null;
        }

        danhMucSoBanNganhCacheModel.NguoiLienHe = getNguoiLienHe();

        String NguoiLienHe = danhMucSoBanNganhCacheModel.NguoiLienHe;

        if ((NguoiLienHe != null) && (NguoiLienHe.length() == 0)) {
            danhMucSoBanNganhCacheModel.NguoiLienHe = null;
        }

        danhMucSoBanNganhCacheModel.Website = getWebsite();

        String Website = danhMucSoBanNganhCacheModel.Website;

        if ((Website != null) && (Website.length() == 0)) {
            danhMucSoBanNganhCacheModel.Website = null;
        }

        danhMucSoBanNganhCacheModel.ChuThich = getChuThich();

        String ChuThich = danhMucSoBanNganhCacheModel.ChuThich;

        if ((ChuThich != null) && (ChuThich.length() == 0)) {
            danhMucSoBanNganhCacheModel.ChuThich = null;
        }

        danhMucSoBanNganhCacheModel.deleted = getDeleted();

        return danhMucSoBanNganhCacheModel;
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(33);

        sb.append("{IDQLKT_DanhMucSoBanNganh=");
        sb.append(getIDQLKT_DanhMucSoBanNganh());
        sb.append(", groupId=");
        sb.append(getGroupId());
        sb.append(", companyId=");
        sb.append(getCompanyId());
        sb.append(", userId=");
        sb.append(getUserId());
        sb.append(", userName=");
        sb.append(getUserName());
        sb.append(", createDate=");
        sb.append(getCreateDate());
        sb.append(", modifiedDate=");
        sb.append(getModifiedDate());
        sb.append(", TenSoBanNganh=");
        sb.append(getTenSoBanNganh());
        sb.append(", DiaChi=");
        sb.append(getDiaChi());
        sb.append(", SoDienThoai=");
        sb.append(getSoDienThoai());
        sb.append(", Fax=");
        sb.append(getFax());
        sb.append(", Email=");
        sb.append(getEmail());
        sb.append(", NguoiLienHe=");
        sb.append(getNguoiLienHe());
        sb.append(", Website=");
        sb.append(getWebsite());
        sb.append(", ChuThich=");
        sb.append(getChuThich());
        sb.append(", deleted=");
        sb.append(getDeleted());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(52);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.qlktcsdldc.model.DanhMucSoBanNganh");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>IDQLKT_DanhMucSoBanNganh</column-name><column-value><![CDATA[");
        sb.append(getIDQLKT_DanhMucSoBanNganh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>groupId</column-name><column-value><![CDATA[");
        sb.append(getGroupId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>companyId</column-name><column-value><![CDATA[");
        sb.append(getCompanyId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userId</column-name><column-value><![CDATA[");
        sb.append(getUserId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>userName</column-name><column-value><![CDATA[");
        sb.append(getUserName());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>createDate</column-name><column-value><![CDATA[");
        sb.append(getCreateDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
        sb.append(getModifiedDate());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>TenSoBanNganh</column-name><column-value><![CDATA[");
        sb.append(getTenSoBanNganh());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>DiaChi</column-name><column-value><![CDATA[");
        sb.append(getDiaChi());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>SoDienThoai</column-name><column-value><![CDATA[");
        sb.append(getSoDienThoai());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>Fax</column-name><column-value><![CDATA[");
        sb.append(getFax());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>Email</column-name><column-value><![CDATA[");
        sb.append(getEmail());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>NguoiLienHe</column-name><column-value><![CDATA[");
        sb.append(getNguoiLienHe());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>Website</column-name><column-value><![CDATA[");
        sb.append(getWebsite());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ChuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>deleted</column-name><column-value><![CDATA[");
        sb.append(getDeleted());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
